//
//  AddressNoCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/12/27.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "AddressNoCell.h"
#import "CreatNewAddressVC.h"
@interface AddressNoCell ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bgViewH;

@property (weak, nonatomic) IBOutlet UIButton *bottomBtn;
@property (weak, nonatomic) IBOutlet UILabel *middleLabel;
@end

@implementation AddressNoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.bgView.backgroundColor = [UIColor whiteColor];
    
    self.bottomMargin.constant = 0;
    
    self.bgViewH.constant = IPhoneX ? (KScreenH - 88) : (KScreenH - 64);
    self.middleLabel.font = MYFONT(17);
    
    self.middleLabel.textColor = darkGray;
    
    self.bottomBtn.titleLabel.font = MYFONT(15);
    
    self.bottomBtn.layer.borderColor = lineGray.CGColor;
    
    self.bottomBtn.layer.borderWidth = 0.6;
    
    self.bottomBtn.layer.cornerRadius = 3;
    
    self.bottomBtn.layer.masksToBounds = YES;
    
    [self.bottomBtn setTitleColor:darkGray forState:UIControlStateNormal];
    
    [self.bottomBtn setTitleColor:darkGray forState:UIControlStateHighlighted];

    // Initialization code
}
- (IBAction)btnDidClick:(UIButton *)sender {
    
    CreatNewAddressVC *temp = [[CreatNewAddressVC alloc]init];
    
    [self.viewController.navigationController pushViewController:temp animated:YES];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
